<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<%@page import="java.util.*, model.*"%>

<html>
	<body>
		<p>Hello <b><%= request.getUserPrincipal().getName() %></b>!</p>
		<p>Role: admin <p>
		<html:link action="/processNotStarted"> View Reviewers</html:link>
		<hr />
		<% 
		String twoReviewers = (String)session.getAttribute("twoReviewers"); 
		
		if(twoReviewers.equals("true")){ %>
			<html:link action="/ProcessStarted"> Start Review Process </html:link>
			<br />
		<% }
		else if(twoReviewers.equals("false")){ %>
			<html:link action="/processNotStarted"> You must provide at least two reviewers befoe the process is initiated </html:link>
		<%}
		else { %>
			 Something is null...
		<%}%>
		
		<p><a href="/StrutsCSE135/pages/invalidate.jsp">Invalidate Session</a></p>
	</body>
</html>
